/**
 * 封装的时间类
 */

// import { ApiProperty } from '@nestjs/swagger';
import { CreateDateColumn, UpdateDateColumn } from 'typeorm';

export abstract class BaseEntity {
  @CreateDateColumn({ name: 'created_at',comment: '创建时间', })
  // @ApiProperty()
  createdAt: Date;

  @UpdateDateColumn({ name: 'updated_at',comment: '更新时间', })
  // @ApiProperty()
  updatedAt: Date;
}
